package com.ljt.yupictureddd.domain.space.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ljt.yupictureddd.domain.space.entity.SpaceUser;
import com.ljt.yupictureddd.interfaces.dto.spaceuser.SpaceUserAddRequest;
import com.ljt.yupictureddd.interfaces.dto.spaceuser.SpaceUserQueryRequest;
import com.ljt.yupictureddd.interfaces.vo.space.SpaceUserVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author 六件套
* @description 针对表【space_user(空间用户关联)】的数据库操作Service
* @createDate 2025-03-20 20:44:29
*/
public interface SpaceUserDomainService extends IService<SpaceUser> {
    /**
     * 创建空间
     */
    long createSpaceUser(SpaceUserAddRequest request);

    /**
     * 获得MybatisPlus查询对象
     *
     * @param request
     * @return
     */
    QueryWrapper<SpaceUser> getQueryWrapper(SpaceUserQueryRequest request);


    /**
     * 校验空间成员
     */
    void validSpaceUser(SpaceUser spaceUser, boolean add);
}
